package com.scnb.Decorator;

public class Milk extends DrinkDecorator{
    public Milk(DrinkObject drinkObject){
        this.drinkObject = drinkObject;
    }

    public double cost() {
        return 1.6 + drinkObject.cost();
    }

    public String add() {
        return "加牛奶 " + drinkObject.add();
    }
}
